import { Button } from "antd";
import Result from "antd/es/result";
import { useNavigate } from "react-router-dom";
import { HOME_PATHNAME, MANAGE_INDEX_PATHNAME } from "../router";

export default function NotFound() {
  const nav = useNavigate();
  return (
    <div>
      <Result
        status="404"
        title="404"
        subTitle="抱歉，您访问的页面不存在！"
        extra={
          <Button type="primary" onClick={() => nav(MANAGE_INDEX_PATHNAME)}>
            返回首页
          </Button>
        }
      />
    </div>
  );
}
